import Vue from 'vue'
import App from './App'
import store from './store'
import cunstomNavigationBar from './components/customNavigationBar/customNavigationBar'
import customNavigationBarWithInput from './components/customNavigationBarWithInput/customNavigationBarWithInput'
import calendar from './components/calendar/uni-calendar.vue'
import timePicker from './components/timePicker/time-picker.vue'

import tabBar from './components/tabBar/tabBar'
// import './router/index'
Vue.config.productionTip = false
Vue.component('cunstom_navigation_bar',cunstomNavigationBar)
Vue.component('cunstom_navigation_bar_input',customNavigationBarWithInput)
Vue.component('tab_bar',tabBar)
Vue.component('time_picker',timePicker)
Vue.component('calendar',calendar)
// #ifdef H5 
window.QQmap = null;
// #endif
// #ifndef MP-TOUTIAO
//网络监听
setTimeout(() => {
	uni.onNetworkStatusChange(function(res) {
		// console.log(res.networkType);
		store.commit("networkChange", {
			isConnected: res.isConnected
		})
	});
}, 100)
// #endif

Vue.prototype.$eventHub = Vue.prototype.$eventHub || new Vue()
Vue.prototype.$store = store
App.mpType = 'app'

const app = new Vue({
	store,
	...App
})
app.$mount()
